<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { useSettingStore } from "@/store/module/setting";
import { useSystemStore } from "@/store/module/system";
import { useMemberStore } from "@/store/module/member";

const settingStore = useSettingStore();
const systemStore = useSystemStore();
const memberStore = useMemberStore();

onLaunch(() => {
    console.log("App Launch");
    settingStore.getSetting();
    systemStore.getSysInfo();
    settingStore.getAllCategoryList();
    // #ifdef MP-WEIXIN
    // 解密code获取数据
    memberStore.decipheringWxLoginCode();
    // #endif
});
onShow(() => {
    console.log("App Show");
});
onHide(() => {
    console.log("App Hide");
});
</script>
<style lang="scss">
@import "./uni.scss";
@import "style/iconfont.css";
@import "style/icon.css";
@import "style/main.scss";
</style>
